#pragma once

#include "pay_proxy_server.h"

class CPayProxyMainServer
	: public CRtTimerWrapperSink
	, public CPayProxyServerSink
{
public:
	CPayProxyMainServer();
	virtual ~CPayProxyMainServer();

public:
	static CPayProxyMainServer* Instance();
	RtResult Initialize();
	void Release();

protected: // from CRtTimerWrapperSink
	virtual void OnTimer(CRtTimerWrapper* aID);
	virtual void OnKillSelf(RtResult aRt);

private:
	CPayProxyServer*	m_pPayProxyServer;

	CRtTimerWrapper m_timer;
	DWORD			m_dwTimerTick;
};



